import axios from '../../utils/request'
// 创建工单信息
export const workorderCreate = (data) =>
{
    return axios({
        method: 'post',
        url: '/workorder/create',
        data
    })
}
// 编辑工单
export const workorderUpdate = (data) =>
{
    return axios({
        method: 'post',
        url: '/workorder/update',
        data
    })
}
// 工单列表
export const workorderRead = (data) =>
{
    return axios({
        method: 'post',
        url: '/workorder/read',
        data
    })
}
// 读取所有工单列表
export const workorderReadAll = (data) =>
{
    return axios({
        method: 'post',
        url: '/workorder/readAll',
        data
    })
}
// 删除工单
export const workorderDelete = (data) =>
{
    return axios({
        method: 'post',
        url: '/workorder/delete',
        data
    })
}
// 获取搜索词
export const findAllWorkOrderList = (data) =>
{
    return axios({
        method: 'post',
        url: '/workorder/findAllWorkOrderList',
        data
    })
}
// 获取订单接受者
export const findWorkOrderAndID = (data) =>
{
    return axios({
        method: 'post',
        url: '/workorder/findWorkOrderAndID',
        data
    })
}

